<div class="comments view">
<h2><?php  echo __d('comments','Comment');?></h2>
	<dl>
		<dt><?php echo __d('comments','Id'); ?></dt>
		<dd>
			<?php echo h($comment['Comment']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('comments','Domain'); ?></dt>
		<dd>
			<?php echo $this->Html->link($comment['Domain']['name'], array('controller' => 'domains', 'action' => 'view', $comment['Domain']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('comments','User'); ?></dt>
		<dd>
			<?php echo $this->Html->link($comment['User']['username'], array('controller' => 'users', 'action' => 'view', $comment['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('comments','Email'); ?></dt>
		<dd>
			<?php echo h($comment['Comment']['email']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('comments','Nick'); ?></dt>
		<dd>
			<?php echo h($comment['Comment']['nick']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('comments','Content'); ?></dt>
		<dd>
			<?php echo h($comment['Comment']['content']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('comments','Rating'); ?></dt>
		<dd>
			<?php echo h($comment['Comment']['rating']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('comments','Ipv4'); ?></dt>
		<dd>
			<?php echo h($comment['Comment']['ipv4']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __d('comments','Status'); ?></dt>
		<dd>
			<?php echo h($comment['Comment']['status']); ?>
			&nbsp;
		</dd>
	</dl>
	
	<div class="related">
		<h3><?php echo __d('comments','Related Posts');?></h3>
		<?php if (!empty($comment['Post'])):?>
		<table cellpadding = "0" cellspacing = "0">
		<tr>
			<th><?php echo __d('comments','Id'); ?></th>
			<th><?php echo __d('comments','Domain Id'); ?></th>
			<th><?php echo __d('comments','User Id'); ?></th>
			<th><?php echo __d('comments','Name'); ?></th>
			<th><?php echo __d('comments','Status'); ?></th>
			<th><?php echo __d('comments','Created'); ?></th>
			<th><?php echo __d('comments','Modified'); ?></th>
			<th class="actions"><?php echo __d('comments','Actions');?></th>
		</tr>
		<?php
			$i = 0;
			foreach ($comment['Post'] as $post): ?>
			<tr>
				<td><?php echo $post['id'];?></td>
				<td><?php echo $post['domain_id'];?></td>
				<td><?php echo $post['user_id'];?></td>
				<td><?php echo $post['name'];?></td>
				<td><?php echo $post['status'];?></td>
				<td><?php echo $post['created'];?></td>
				<td><?php echo $post['modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__d('comments','View'), array('controller' => 'posts', 'action' => 'view', $post['id'])); ?>
					<?php echo $this->Html->link(__d('comments','Edit'), array('controller' => 'posts', 'action' => 'edit', $post['id'])); ?>
					<?php echo $this->Form->postLink(__d('comments','Delete'), array('controller' => 'posts', 'action' => 'delete', $post['id']), null, __d('comments','Are you sure you want to delete # %s?', $post['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</table>
	<?php endif; ?>
	
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__d('comments','New Post'), array('controller' => 'posts', 'action' => 'add'));?> </li>
			</ul>
		</div>
	</div>
</div>
<?php echo $this->element('/menu/left')?>


